<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户注册</title>
	 <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <link href="/food/Public/log/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/bootstrap.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/templatemo_style.css" rel="stylesheet" type="text/css"> 

<link href="/food/Public/mb1/css/bootstrap.css" rel="stylesheet">
<link href="/food/Public/mb1/css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Furnished Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<script src="/food/Public/mb1/js/jquery.min.js"> </script>
           <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
  <!-- js -->
     <script src="/food/Public/mb1/js/bootstrap.js"></script>
  <!-- js -->
    <script type="text/javascript" src="/food/Public/mb1/js/move-top.js"></script>
<script type="text/javascript" src="/food/Public/mb1/js/easing.js"></script>
<!--/script-->
 
<script type="text/javascript">
      jQuery(document).ready(function($) {
        $(".scroll").click(function(event){   
          event.preventDefault();
          $('html,body').animate({scrollTop:$(this.hash).offset().top},900);
        });
      });

</script>

 <script>
    function checkTele(){
      var xmlHttp;
      try{    // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();    
      }
      catch(e){   // Internet Explorer
        try{
          xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }catch (e){
          try{
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
          }
          catch (e){
            alert("您的浏览器不支持AJAX！");
            return false;
          }      
        }    
      } 
    
    xmlHttp.onreadystatechange=function() {
      if (xmlHttp.readyState==4 && xmlHttp.status==200){
          document.getElementById("tip").innerHTML=xmlHttp.responseText;
      }
    }
    var tele = document.getElementById("telephone").value;
    xmlHttp.open("GET", "checkTele?t="+tele, true);
    xmlHttp.send();
}
        function check(){
            var password = document.getElementById("password").value;
            var repsword = document.getElementById("newpassword").value;
        if(password == ''||repsword==''){
        alert('密码不能为空');
            return false;
        }
        if(password != repsword) {
        alert("两次密码不同，请重新输入");
            return false;
        }
    //   return true;


        }
    </script>






</head>
<div class="header">
<div class="header-top">
    <div class="container">
          
      <form class="navbar-form navbar-right wow fadeInRight animated" data-wow-delay=".5s" style="visibility: visible; -webkit-animation-delay: .5s;">
        <div class="form-group">
         
          
        </div>
        
      </form> 
    </div>  
    </div>
    <div class="clearfix"> </div>
  </div>



<div class="header-nav">
  <div class="container">
    <div class="logo">
      <a href="<?php echo U('Index/index');?>"><img src="/food/Public/mb1/images/logo.png" /></a>
    </div>
    <div class="navigation">
      <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"> </span>
            <span class="icon-bar"> </span>
            <span class="icon-bar"> </span>
            </button>
          </div>
          <div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
            <li class="active"><a href="<?php echo U('Index/index');?>">首页 <span class="sr-only">(current)</span></a></li>
           
            <li><a href="<?php echo U('Meishis/meishis');?>">发表美食</a></li>
            <li><a href="<?php echo U('Meishis/meishis');?>">用户分享</a></li>
             <li><a href="<?php echo U('Users/userInfo');?>">个人信息</a></li>
            <li><a href="<?php echo U('Users/login');?>">登录</a></li>
            <li><a href="<?php echo U('Users/reg');?>">注册</a></li>
            </ul>
        <div class="clearfix"> </div>
      </div><!-- /.navbar-collapse -->
    </nav>
  </div>
  </div>
  </div>
  <div class="clearfix"> </div>
</div>
<body>
	 <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
                  <form  method="post"  class="form-horizontal" action="<?php echo U(register);?>"  enctype="multipart/form-data" onsubmit="return check();" >

                    <input class="form-control" placeholder="手机号(必填)" type="text" id="telephone" name="telephone" required pattern="[0-9]{11}" title="请填写正确的手机号" onblur="checkTele()">
                      <span id="tip" style="color:red"></span>

                      <br>
                      <input class="form-control" placeholder="用户名(必填)" type="text" id="aliasname" name="aliasname" required pattern="[0-9a-zA-Z_]{6,12}">
                      <br>
                      <input class="form-control" placeholder="密码(必填)" type="password" id="password" name="password" required>
                      <br>
                      <input class="form-control" placeholder="确认密码(必填)" type="password" id="newpassword" name="newpassword" required>
                      <br>
                      <input class="form-control" placeholder="邮箱(必填)" type="email" id="email" name="email" required>
                      <br>
                      
                      <div class="fileupload fileupload-new" data-provides="fileupload">
                      <input type="hidden" value=""  name="" >
                          <div class="fileupload-new img-thumbnail"
                               style="width: 110px; height: 110px;background-color:#5f5f5f">
                              <img src="">
                          </div>
                          <div class="fileupload-preview fileupload-exists img-thumbnail"
                               style="width: 110px; max-height: 110px;"></div>
                       
                     <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                    <span class="fileupload-exists">重选</span><input type="file" name="file">
                      </span>
                        <span>
                      <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                                href="#">撤销</a>
                      </span> 
                      </div>
                      <input class="btn btn-block btn-info "  type="submit" value="注 册">

                  </form>
              </div>
          </div>
</body>
</html>